<template name="nueva">
    <h2>Nueva Franja</h2>
    <form method="post" action="{{nueva_franja}}">
        <span class="requerido">*</span>Nombre de la franja: <input type="text" name="franja[nombre]" maxlength="40" style="width: 200px" value="{{['franja']['nombre']}}" />
        <br/>
        <br/>
        <table>
            <tr>
                <th colspan="2"><span>*</span>Horario y d&iacute;as de la franja</th>
            </tr>
            <tr>
                <td class="center_text"><input type="checkbox" name="franja[dias_bitmap][]" value="{{bitmap_lunes}}" class="check_reduce" {{checked_1}} /></td>
                <td>Lunes</td>
            </tr>
            <tr>
                <td class="center_text"><input type="checkbox" name="franja[dias_bitmap][]" value="{{bitmap_martes}}" class="check_reduce" {{checked_2}} /></td>
                <td>Martes</td>
            </tr>
            <tr>
                <td class="center_text"><input type="checkbox" name="franja[dias_bitmap][]" value="{{bitmap_miercoles}}" class="check_reduce" {{checked_4}} /></td>
                <td>Miercoles</td>
            </tr>
            <tr>
                <td class="center_text"><input type="checkbox" name="franja[dias_bitmap][]" value="{{bitmap_jueves}}" class="check_reduce" {{checked_8}} /></td>
                <td>Jueves</td>
            </tr>
            <tr>
                <td class="center_text"><input type="checkbox" name="franja[dias_bitmap][]" value="{{bitmap_viernes}}" class="check_reduce" {{checked_16}} /></td>
                <td>Viernes</td>
            </tr>
            <tr>
                <td class="center_text"><input type="checkbox" name="franja[dias_bitmap][]" value="{{bitmap_sabado}}" class="check_reduce" {{checked_32}} /></td>
                <td>S&aacute;bado</td>
            </tr>
            <tr>
                <td class="center_text"><input type="checkbox" name="franja[dias_bitmap][]" value="{{bitmap_domingo}}" class="check_reduce" {{checked_64}} /></td>
                <td>Domingo</td>
            </tr>
            <tr>
                <td class="center_text"><strong>Desde:</strong></td>
                <td><input type="text" name="franja[horario_desde]" id="horario_desde" value="{{['franja']['horario_desde']}}" readonly="readonly" /></td>
            </tr>
            <tr>
                <td class="center_text"><strong>Hasta:</strong></td>
                <td><input type="text" name="franja[horario_hasta]" id="horario_hasta" value="{{['franja']['horario_hasta']}}" readonly="readonly" /></td>
            </tr>
        </table>
        <br/>
        <input type="submit" value="Guardar nueva franja" class="make_submit_button" />
        <br/>
        <br/>
        <span class="requerido">*</span><span>Campos requeridos (al menos un d&iacute;a debe ser seleccionado)</span>
    </form>
    <script type="text/javascript">
        $(function(){
           $('#horario_desde').timespinner( { step : 60 , page : 60, min  : 0, max  : 86340 } );
           $('#horario_hasta').timespinner( { step : 60 , page : 60, min  : 0, max  : 86340 });
        });
    </script>
</template>